import base_component from "../../../component/base_component";
import gameCfg from "../../../gameCfg";
import sdk from '../../index';
import { ComType } from "../../tool/component";
import { BaseBody } from "./body_base";
export default class player extends BaseBody {
    constructor(){
        super();
    }

    register(){
        let com = this.getComponent(ComType.base) as base_component;
        com.setName('未命名');
        this.getComponent(ComType.意图);
        // 初始化签到组件
        this.getComponent(ComType.签到);
        // 初始化任务组件
        this.getComponent(ComType.任务);
        // 初始化排行榜组件
        this.getComponent(ComType.排行榜);
    }
    setBase(name:string | undefined){
        let com = this.getComponent(ComType.base) as base_component;
        com.setName(name || '匿名');
    }
}